//
//  ZSRevisePasswordViewController.m
//  ZhuShou
//
//  Created by zypsusu on 15/12/27.
//  Copyright © 2015年 jw. All rights reserved.
//

#import "ZSRevisePasswordViewController.h"

@interface ZSRevisePasswordViewController ()

@property (weak, nonatomic) IBOutlet UITextField *newpassword;

@property (weak, nonatomic) IBOutlet UITextField *reviseTextFiled;

@end

@implementation ZSRevisePasswordViewController

- (IBAction)revisePasswordClick:(id)sender {
    if (self.newpassword.text && self.reviseTextFiled.text) {
        
        if (![self.newpassword.text isEqualToString:self.reviseTextFiled.text]) {
            [self br_AutoDisappearWithText:@"密码不一致"];
        }
        // 上传新密码,上传过程显示 正在设置，请稍候， 完成显示设置成功
#warning todo
        
    } else {
        [self br_AutoDisappearWithText:@"密码不能为空"];
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"账号密码修改";
    [self.newpassword becomeFirstResponder];
    [self init_addTapViewEndEdit];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
